package com.trxy.hotelsystem.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.trxy.hotelsystem.dao.staffInfMapper;
import com.trxy.hotelsystem.model.staffInf;
import com.trxy.hotelsystem.service.StaffyInfservice;

@Service
public class StaffyInfserviceImpl implements StaffyInfservice{
	
	@Autowired
	private staffInfMapper staffInfmapper;

	@Override
	public List<staffInf> queryStaffAll() {
		// TODO Auto-generated method stub
		return staffInfmapper.queryStaffAll();
	}

	@Override
	public staffInf selectStafBykey(String key) {
		// TODO Auto-generated method stub
		return staffInfmapper.selectStafBykey(key);
	}

	@Override
	public int addStaf(staffInf sta) {
		// TODO Auto-generated method stub
		return staffInfmapper.addStaf(sta);
	}

	@Override
	public List<staffInf> selectStafByNumber(staffInf sta) {
		// TODO Auto-generated method stub
		return staffInfmapper.selectStafByNumber(sta);
	}

	@Override
	public int deleteStafById(staffInf sta) {
		// TODO Auto-generated method stub
		return staffInfmapper.deleteByPrimaryKey(sta);
	}

	@Override
	public List<staffInf> selectStafByName(String stafName) {
		// TODO Auto-generated method stub
		return staffInfmapper.selectStafByName(stafName);
	}

	@Override
	public int updataStaf(staffInf sta) {
		// TODO Auto-generated method stub
		return staffInfmapper.updataStaf(sta);
	}
	
	

}
